{layout name="/base" /}
<link rel="stylesheet" type="text/css" href="/front/css/jquery-ui.css"/>
<script src="/front/js/jquery-ui.js" type="text/javascript"></script>
<script src="/front/js/weifeng.js" type="text/javascript"></script>
	<div class="row">
		<div class="col-lg-12">
			<h1>营地管理 <small>设置营地信息</small></h1>
			<ol class="breadcrumb">
				<li><a href="/index"><i class="fa fa-dashboard"></i> 管理首页</a></li>
				<li><a href="/camps"><i class="fa fa-dashboard"></i> 营地列表信息</a></li>
				<li class="active"><i class="fa fa-table"></i> 设置营地信息</li>
			</ol>
			<div class="alert alert-success alert-dismissable">
				<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button> 请准确设置信息
			</div>
		</div>
	</div>
	<div class="row">
		<div class="bs-example">
			<ul class="nav nav-tabs" style="margin-bottom:15px;">
				<li class="active">
					<a href="javaScript:;">营地基本信息</a>
				</li>
			</ul>
			<form class="form-horizontal" role="form" action="/camps/postsetcamp" method="post">
				<input type="hidden" name="camp_id" value="{$campData.id}" />
				<!-- 选项卡内容start -->
				<div id="myTabContent" class="tab-content">
					<!-- 选项卡内容1会员类型start -->
					<div id="one" class="tab-pane fade active in">
						<!-- 基本信息start -->
						<div class="col-lg-11">
							<div class="form-group">
								<label class="control-label col-sm-2" style="color: red; font-size: 16px;">设置旺季</label>
								{if empty($campData.peak_date.start_date) || empty($campData.peak_date.end_date)}
								<div class="col-sm-2">
									<label>开始时间
									<input class="form-control" type="text" id="selstartdate" name="peak_date[start_date]" value="" placeholder="选择开始日期" />
									</label>
								</div>
								<div class="col-sm-2">
									<label for="">结束时间
									<input class="form-control" type="text" id="selendate" name="peak_date[end_date]" value="" placeholder="选择结束日期" />
									</label>
								</div>
								{else/}
								<div class="col-sm-2">
									<label for="">开始时间
									<input class="form-control" type="text" id="selstartdate" name="peak_date[start_date]" value="{$campData.peak_date.start_date}" placeholder="选择开始日期" />
									</label>
								</div>
								<div class="col-sm-2">
									<label for="">结束时间
									<input class="form-control" type="text" id="selendate" name="peak_date[end_date]" value="{$campData.peak_date.end_date}" placeholder="选择结束日期" />
									</label>
								</div>
								{/if}
							</div>
							<div>
								<button type="submit" class="btn btn-primary" style="float: right;">提交</button>
							</div>
						</div>
					</div>
				</div>
			</form>
		</div>
	</div>
